<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateBasicInfoGraduatedSchoolTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('basic_info_graduated_school', function (Blueprint $table) {
//            $table->comment('毕业院校');
            $table->bigInteger('id', true);
            $table->bigInteger('user_id')->nullable()->comment('用户id');
            $table->bigInteger('data_version_id')->nullable()->comment('数据版本id');
            $table->bigInteger('form_instance_id')->nullable()->comment('表单实例id');
            $table->string('graduated_school', 50)->nullable()->comment('毕业院校');
            $table->dateTime('graduated_date')->nullable()->comment('毕业日期');
            $table->longText('academic')->nullable()->comment('学历');
            $table->longText('degree')->nullable()->comment('学位');
            $table->integer('deleted')->nullable()->default(0)->comment('是否被删除');
            $table->string('modified_column', 255)->nullable()->comment('被修改过的字段');
            $table->dateTime('created_at')->nullable()->useCurrent();
            $table->dateTime('updated_at')->nullable()->useCurrent();
            $table->bigInteger('creator_id')->nullable();
            $table->bigInteger('updater_id')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('basic_info_graduated_school');
    }
};
